package com.nd.android.u.ui.chatBottomFunction;

import android.app.Activity;
import android.os.Message;
import android.support.v4.app.Fragment;

import com.nd.android.u.controller.MessageConst.ChatNotify;
import com.nd.android.u.controller.factory.ChatBottomFunctionFactory.ISpecialProccess;
import com.nd.android.u.controller.innerInterface.IBottomFunction;
import com.nd.android.u.ui.R;
import com.product.android.business.ApplicationVariable;

/**
 * 表情
 * @author yufeng
 * @version 创建时间：2014-7-18 上午10:40:44
 */
public class BottomFunction_Smiley implements IBottomFunction {

    @Override
    public String getLabel() {
        return ApplicationVariable.INSTANCE.applicationContext.getString(R.string.list_grid_item_smiley);
    }

    @Override
    public int getAppResId() {
    	return R.drawable.app_smiley;
    }

    @Override
    public boolean isEnable(int MessageType, long subType) {
        return true;
    }

	@Override
	public void onClick(Activity context, Fragment fragment,ISpecialProccess proccess) {
		Message msg=new Message();
        msg.what=ChatNotify.SHOW_SMILEY;
        if (proccess!=null){
        	proccess.specialProccess(msg);
        }
	}
}
